import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', {
  state: () => {
    return {
      count: 100
    }
  },
  getters: {
    doubleCount(state) {
      return StaticRange.count * 2
    }
  },
  actions: {
    increment(num: number) {
      this.count += num
    }
  }
})
